@extends('layout.index')
@section('title','订单状态修改')
@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>订单状态修改</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form action="/admin/order/editstatus" method='post' class="mws-form">
        		@if(count($errors) > 0)
        			<div class="mws-form-message error">
        				修改失败!
        				<ul>
        					@foreach($errors->all() as $error)
								<li>{{ $error }}</li>
        					@endforeach
        				</ul>
        			</div>
        		@endif

        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label">状态</label>
        				<div class="mws-form-item">
        					<select name="status" id="">
                            <option value="1"
                            @if($status == 1)
                            selected
                            @endif
                            >已下单</option>
                            <option value="2"
                            @if($status == 2)
                            selected
                            @endif
                            >已取消</option>
                            <option value="3"
                            @if($status == 3)
                            selected
                            @endif
                            >已退货</option>
                            <option value="4"
                            @if($status == 4)
                            selected
                            @endif
                            >已换货</option>
                            </select>
        				</div>
        			</div>
        			

                    <input type="hidden" name='id' value='{{$id}}'>
        			{{csrf_field()}}
        		</div>
        		<div class="mws-button-row">
        			<input type="submit" class="btn btn-primary" value="修改">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection